let app = getApp();
Page({
  data: {
    img: ""
  },
  onShow() {
    if (!app.globalData.scaning){
      app.globalData.scaning = true
      wx.navigateTo({
        url: '../scanchild/index',
      })
    }else{
      app.globalData.scaning = false
      wx.switchTab({
        url: '../index/index',
      })
    }
  },
  scan() {
    
  }
})
